package com.capgemini.fs.app.ekms.model;

import java.util.Date;

public class Entity implements Comparable<Entity> {
	private Integer	id;
	private String	creator;
	private String	lastModifier;
	private Date	createDate;
	private Date	lastUpdateDate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public String getLastModifier() {
		return lastModifier;
	}

	public void setLastModifier(String lastModifier) {
		this.lastModifier = lastModifier;
	}

	public int compareTo(Entity o) {
		if (this.id < o.getId()) {
			return -1;
		}
		if (this.id > o.getId()) {
			return 1;
		}
		return 0;
	}
}
